//
//  MZPickerViewController.h
//  meizhuang
//
//  Created by sky on 16/9/7.
//  Copyright © 2016年 netease. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "WFActivityViewController.h"
@protocol WFPickerViewControllerDelegate;

@interface WFPickerViewController : WFActivityViewController

@property (nonatomic, weak) id<WFPickerViewControllerDelegate> delegate;
@property (nonatomic, strong) UIPickerView *pickerView;
@property (strong, nonatomic) UIButton *cancelButton;
@property (strong, nonatomic) UIButton *okButton;

@property (nonatomic, strong) NSArray<NSArray<NSString *> *> *dataSource;
@property (nonatomic, strong) NSIndexPath *selectedIndexPath;

- (void)selectRowsOfComponentsAtIndexPath:(NSIndexPath *)indexPath;

@end

@protocol WFPickerViewControllerDelegate <NSObject>
@optional
- (void)pickerViewController:(WFPickerViewController *)controller didPickAtIndexPath:(NSIndexPath *)indexPath;

- (void)pickerViewControllerDidCancel:(WFPickerViewController *)controller;

@end
